//ts-ignore
const modules = import.meta.glob('../assets/ma-icons/*.vue', { eager: true })

export default defineNuxtPlugin((app) => {
    for (const path in modules) {
        const name = path.match(/([A-Za-z0-9_-]+)/g)[2]
        const componentName = `MaIcon${name}`
        app.vueApp.component(componentName, modules[path].default)
    }
})
